home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr05 / windv154.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-06-20  |  2KB  |  86 lines

  1. @echo off
  2. REM  Installation script for Windev on Windows 3.1 or NT.
  3.  
  4. if not "%1" == "" goto install
  5. @echo Usage: INSTALL destination-directory
  6. goto end
  7.  
  8. :install
  9. if not "%windir%" == "" goto setos
  10. set windir=C:\WINDOWS
  11.  
  12. :setos
  13. set destdir=%1\windev
  14. if exist windevpj.pif goto setwin3
  15. @echo Installing Windev for Windows NT
  16. set os=nt
  17. goto mkdirs
  18.  
  19. :setwin3
  20. @echo Installing Windev for Windows 3.1
  21. set os=win3
  22.  
  23. :mkdirs
  24. mkdir %destdir%
  25. mkdir %destdir%\%os%
  26.  
  27. REM --- O/S specific, common named files.
  28. echo Copying to %destdir%\%os% ...
  29. echo readme.txt...
  30. copy readme.txt %destdir%\%os%
  31. if not exist %destdir%\%os%\readme.txt goto copyerr
  32. echo windev.exe...
  33. copy windev.exe %destdir%\%os%
  34. if not exist %destdir%\%os%\windev.exe goto copyerr
  35. if exist windev.reg copy windev.reg %destdir%\%os%
  36.  
  37. if "%os%" == "nt" goto ntfiles
  38. REM --- Windows 3 specific files.
  39. echo stbar.dll...
  40. copy stbar.dll %destdir%\%os%
  41. if not exist %destdir%\%os%\stbar.dll goto copyerr
  42. echo Copying windevpj.pif to %windir%
  43. copy windevpj.pif %windir%
  44. if not exist %windir%\windevpj.pif goto copyerr
  45. if exist %windir%\system\ctl3d.dll goto shared
  46. echo Copying ctl3d.dll to %windir%\system
  47. copy ctl3d.dll %windir%\system
  48. goto shared
  49.  
  50. :ntfiles
  51. REM --- Windows NT specific files.
  52. echo projexec.exe...
  53. copy projexec.exe %destdir%\%os%
  54. if not exist %destdir%\%os%\projexec.exe goto copyerr
  55. if exist %windir%\system\ctl3d32.dll goto shared
  56. echo Copying ctl3d32.dll to %windir%\system
  57. copy ctl3d32.dll %windir%\system
  58.  
  59. :shared
  60. REM --- Common files.
  61. echo Copying to %destdir% ...
  62. echo windev.hlp...
  63. copy windev.hlp %destdir%
  64. if not exist %destdir%\windev.hlp goto copyerr
  65. echo license.txt...
  66. copy license.txt %destdir%
  67. if not exist %destdir%\license.txt goto copyerr
  68. echo changes.txt...
  69. copy changes.txt %destdir%
  70. if not exist %destdir%\changes.txt goto copyerr
  71. echo features.wri...
  72. copy features.wri %destdir%
  73. if not exist %destdir%\features.wri goto copyerr
  74.  
  75. @echo ---------------------------------------------------------
  76. @echo Windev has been successfully installed in %destdir%
  77. @echo Please read %os%\readme.txt before starting use.
  78. @echo Use Program Manager to add windev.exe to a program group.
  79. @echo ---------------------------------------------------------
  80. goto end
  81.  
  82. :copyerr
  83. @echo File copy error, abandoning installation.
  84.  
  85. :end
  86.